package com.talent.study.chain;

/**
 * @Author: hszhou
 * @Date: 2025/5/10 15:09
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
public class ConcreteHandlerB extends AbstractHandler{


    @Override
    protected boolean canHandle(Request request) {
        return request.getType() == RequestType.TYPE_B;
    }

    @Override
    protected void handler(Request request) {
        System.out.println("Handled by ConcreteHandlerB: " + request);
    }
}
